<#assign prefixName = 'WHERE'>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__endDaTi??)>
	<#if (where__and__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__and__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__and__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__endDaTi__value??)>
${prefixName} T.END_DA_TI = :where__or__eq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__endDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__endDaTi__value??)>
${prefixName} T.END_DA_TI <> :where__or__nq__endDaTi__value
	<#else>
${prefixName} T.END_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department5Id??)>
	<#if (where__and__eq__department5Id__value??)>
${prefixName} T.DEPARTMENT_5_ID = :where__and__eq__department5Id__value
	<#else>
${prefixName} T.DEPARTMENT_5_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department5Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department5Id__value??)>
${prefixName} T.DEPARTMENT_5_ID <> :where__and__nq__department5Id__value
	<#else>
${prefixName} T.DEPARTMENT_5_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department5Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department5Id__value??)>
${prefixName} T.DEPARTMENT_5_ID = :where__or__eq__department5Id__value
	<#else>
${prefixName} T.DEPARTMENT_5_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department5Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department5Id__value??)>
${prefixName} T.DEPARTMENT_5_ID <> :where__or__nq__department5Id__value
	<#else>
${prefixName} T.DEPARTMENT_5_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department3Id??)>
	<#if (where__and__eq__department3Id__value??)>
${prefixName} T.DEPARTMENT_3_ID = :where__and__eq__department3Id__value
	<#else>
${prefixName} T.DEPARTMENT_3_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department3Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department3Id__value??)>
${prefixName} T.DEPARTMENT_3_ID <> :where__and__nq__department3Id__value
	<#else>
${prefixName} T.DEPARTMENT_3_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department3Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department3Id__value??)>
${prefixName} T.DEPARTMENT_3_ID = :where__or__eq__department3Id__value
	<#else>
${prefixName} T.DEPARTMENT_3_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department3Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department3Id__value??)>
${prefixName} T.DEPARTMENT_3_ID <> :where__or__nq__department3Id__value
	<#else>
${prefixName} T.DEPARTMENT_3_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department6Id??)>
	<#if (where__and__eq__department6Id__value??)>
${prefixName} T.DEPARTMENT_6_ID = :where__and__eq__department6Id__value
	<#else>
${prefixName} T.DEPARTMENT_6_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department6Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department6Id__value??)>
${prefixName} T.DEPARTMENT_6_ID <> :where__and__nq__department6Id__value
	<#else>
${prefixName} T.DEPARTMENT_6_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department6Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department6Id__value??)>
${prefixName} T.DEPARTMENT_6_ID = :where__or__eq__department6Id__value
	<#else>
${prefixName} T.DEPARTMENT_6_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department6Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department6Id__value??)>
${prefixName} T.DEPARTMENT_6_ID <> :where__or__nq__department6Id__value
	<#else>
${prefixName} T.DEPARTMENT_6_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__code??)>
	<#if (where__and__eq__code__value??)>
${prefixName} T.CODE = :where__and__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__code__value??)>
${prefixName} T.CODE <> :where__and__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__code__value??)>
${prefixName} T.CODE = :where__or__eq__code__value
	<#else>
${prefixName} T.CODE IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__code??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__code__value??)>
${prefixName} T.CODE <> :where__or__nq__code__value
	<#else>
${prefixName} T.CODE IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department2Id??)>
	<#if (where__and__eq__department2Id__value??)>
${prefixName} T.DEPARTMENT_2_ID = :where__and__eq__department2Id__value
	<#else>
${prefixName} T.DEPARTMENT_2_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department2Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department2Id__value??)>
${prefixName} T.DEPARTMENT_2_ID <> :where__and__nq__department2Id__value
	<#else>
${prefixName} T.DEPARTMENT_2_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department2Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department2Id__value??)>
${prefixName} T.DEPARTMENT_2_ID = :where__or__eq__department2Id__value
	<#else>
${prefixName} T.DEPARTMENT_2_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department2Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department2Id__value??)>
${prefixName} T.DEPARTMENT_2_ID <> :where__or__nq__department2Id__value
	<#else>
${prefixName} T.DEPARTMENT_2_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__id??)>
	<#if (where__and__eq__id__value??)>
${prefixName} T.ID = :where__and__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__id__value??)>
${prefixName} T.ID <> :where__and__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__id__value??)>
${prefixName} T.ID = :where__or__eq__id__value
	<#else>
${prefixName} T.ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__id__value??)>
${prefixName} T.ID <> :where__or__nq__id__value
	<#else>
${prefixName} T.ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__email??)>
	<#if (where__and__eq__email__value??)>
${prefixName} T.EMAIL = :where__and__eq__email__value
	<#else>
${prefixName} T.EMAIL IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__email??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__email__value??)>
${prefixName} T.EMAIL <> :where__and__nq__email__value
	<#else>
${prefixName} T.EMAIL IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__email??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__email__value??)>
${prefixName} T.EMAIL = :where__or__eq__email__value
	<#else>
${prefixName} T.EMAIL IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__email??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__email__value??)>
${prefixName} T.EMAIL <> :where__or__nq__email__value
	<#else>
${prefixName} T.EMAIL IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__name??)>
	<#if (where__and__eq__name__value??)>
${prefixName} T.NAME = :where__and__eq__name__value
	<#else>
${prefixName} T.NAME IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__name__value??)>
${prefixName} T.NAME <> :where__and__nq__name__value
	<#else>
${prefixName} T.NAME IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__name__value??)>
${prefixName} T.NAME = :where__or__eq__name__value
	<#else>
${prefixName} T.NAME IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__name??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__name__value??)>
${prefixName} T.NAME <> :where__or__nq__name__value
	<#else>
${prefixName} T.NAME IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__beginDaTi??)>
	<#if (where__and__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__and__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__and__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI = :where__or__eq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__beginDaTi??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__beginDaTi__value??)>
${prefixName} T.BEGIN_DA_TI <> :where__or__nq__beginDaTi__value
	<#else>
${prefixName} T.BEGIN_DA_TI IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department1Id??)>
	<#if (where__and__eq__department1Id__value??)>
${prefixName} T.DEPARTMENT_1_ID = :where__and__eq__department1Id__value
	<#else>
${prefixName} T.DEPARTMENT_1_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department1Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department1Id__value??)>
${prefixName} T.DEPARTMENT_1_ID <> :where__and__nq__department1Id__value
	<#else>
${prefixName} T.DEPARTMENT_1_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department1Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department1Id__value??)>
${prefixName} T.DEPARTMENT_1_ID = :where__or__eq__department1Id__value
	<#else>
${prefixName} T.DEPARTMENT_1_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department1Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department1Id__value??)>
${prefixName} T.DEPARTMENT_1_ID <> :where__or__nq__department1Id__value
	<#else>
${prefixName} T.DEPARTMENT_1_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__departmentId??)>
	<#if (where__and__eq__departmentId__value??)>
${prefixName} T.DEPARTMENT_ID = :where__and__eq__departmentId__value
	<#else>
${prefixName} T.DEPARTMENT_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__departmentId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__departmentId__value??)>
${prefixName} T.DEPARTMENT_ID <> :where__and__nq__departmentId__value
	<#else>
${prefixName} T.DEPARTMENT_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__departmentId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__departmentId__value??)>
${prefixName} T.DEPARTMENT_ID = :where__or__eq__departmentId__value
	<#else>
${prefixName} T.DEPARTMENT_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__departmentId??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__departmentId__value??)>
${prefixName} T.DEPARTMENT_ID <> :where__or__nq__departmentId__value
	<#else>
${prefixName} T.DEPARTMENT_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__sexCo??)>
	<#if (where__and__eq__sexCo__value??)>
${prefixName} T.SEX_CO = :where__and__eq__sexCo__value
	<#else>
${prefixName} T.SEX_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__sexCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__sexCo__value??)>
${prefixName} T.SEX_CO <> :where__and__nq__sexCo__value
	<#else>
${prefixName} T.SEX_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__sexCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__sexCo__value??)>
${prefixName} T.SEX_CO = :where__or__eq__sexCo__value
	<#else>
${prefixName} T.SEX_CO IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__sexCo??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__sexCo__value??)>
${prefixName} T.SEX_CO <> :where__or__nq__sexCo__value
	<#else>
${prefixName} T.SEX_CO IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
<#if (where__and__eq__department4Id??)>
	<#if (where__and__eq__department4Id__value??)>
${prefixName} T.DEPARTMENT_4_ID = :where__and__eq__department4Id__value
	<#else>
${prefixName} T.DEPARTMENT_4_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__and__nq__department4Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName='AND'>
</#if>
	<#if (where__and__nq__department4Id__value??)>
${prefixName} T.DEPARTMENT_4_ID <> :where__and__nq__department4Id__value
	<#else>
${prefixName} T.DEPARTMENT_4_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__eq__department4Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__eq__department4Id__value??)>
${prefixName} T.DEPARTMENT_4_ID = :where__or__eq__department4Id__value
	<#else>
${prefixName} T.DEPARTMENT_4_ID IS NULL
	</#if>
	<#assign prefixName = ''>
</#if>
<#if (where__or__nq__department4Id??)>
<#if (prefixName!) != 'WHERE'>
	<#assign prefixName = 'OR'>
</#if>
	<#if (where__or__nq__department4Id__value??)>
${prefixName} T.DEPARTMENT_4_ID <> :where__or__nq__department4Id__value
	<#else>
${prefixName} T.DEPARTMENT_4_ID IS NOT NULL
	</#if>
	<#assign prefixName = ''>
</#if>
